package com.wangmei.service;

import com.wangmei.model.Product;
import com.wangmei.model.ProductExample;
import com.wangmei.pojo.ProductCollection;

import java.util.List;
import java.util.Map;

public interface ProductService {
    List<Product> getProductList();

    Product getProductByPid(int pid);

    int addProduct(Product product);

    int updateProduct(Product product);

    int deleteProduct(int pid);

    int deleteProducts(List<Integer> pids);

    List<Product> getProductByPname(String pname);

    List<Product> selectByExample(ProductExample example);

    List<ProductCollection> getProductByCid(Map<String,Object> map);
}
